<fieldset>
	<legend>
		<strong>Filter Follow-Ups</strong>
	</legend>
	
<% form_remote_tag :url => {:action => 'search_follow_ups'} do %>
	
	<% unless controller.action_name == "manage" %>
	<span class="cell">
		<label>Select User</label><br>
		<%= collection_select('user', 'login', User.find(:all), 'login', 'full_name', options = {:prompt => "All Users"}) %>
	</span>
	<% end %>
	<span class="cell">
		<label>Attribution:</label><br>
		<%= text_field :follow_up, :attribution %>
	</span>
	<span class="cell">
		<label>Follow-Up Type:</label><br>
		<%= collection_select(:follow_up, :type, FollowUpType.find(:all).sort_by(&:name), :id, :name,
							  options = {:prompt => '--All--', :include_blank => true}) %>
	</span>
	<span class="cell">
		<label>Follow-Up Range:</label><br>
		<%= select('follow_up', 'range', Contact::RANGES) %>
	</span>
	<span class="cell">
		<label>Contact Type</label><br>
		<%= collection_select(:follow_up, :contact_type_id, ContactType.find(:all, :order => :name), :id, :name,
		 					  options = {:prompt => '--All--', :include_blank => true}) %>
	</span>
	<span class="cell">
		<%= submit_tag 'Go' %><span id='progress' style='display:none;'><img src='/images/working.gif'></span>
	</span>
	
<% end %>
	
</fieldset>